﻿#ifndef CHANGEGUNINFO_H
#define CHANGEGUNINFO_H

#include <QWidget>
#include "Global.h"
namespace Ui {
class ChangeGuninfo;
}

class ChangeGuninfo : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;

    explicit ChangeGuninfo(QWidget *parent = 0);
    ~ChangeGuninfo();
    
private slots:
    void on_Keyboard_clicked();
    void on_buttonBack_clicked();
    void on_buttonSave_clicked();

public slots:
    void TitleChange(int Gunnum);

private:
    int ChangeGunNo;
    QString Save[8];
    QSqlQueryModel* MeterModel;
    QDataWidgetMapper* MeterMapper;
    void keyHandle(QPushButton* btn, QLineEdit* lineEdit);
    void keyBoardConnect();
    void readGuninfodb();
    void showguninfo(int gunnum);
    Ui::ChangeGuninfo *ui;
};

#endif // CHANGEGUNINFO_H
